package cn.xunyijia.service.impl;

import cn.xunyijia.dao.UserDao;
import cn.xunyijia.po.User;
import cn.xunyijia.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class IUserServiceImpl implements IUserService{
    private final UserDao userDao;

    @Autowired
    public IUserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User findUserById(int userId) {
        return userDao.getUser(userId);
    }
}
